package ${mapperPackageName};

import ${packageName}.${className};

import java.util.List;

/**
*  @Author ${author}
*  @Email ${email}
*  @Date ${date?string("yyyy-MM-dd HH:mm:ss")}
<#assign idtype='Long' />
	<#list attrs as attr>
	<#if attr.name=="id" >
	<#assign idtype=attr.type />
	</#if>
	</#list>

*/
public interface ${className}Mapper {

    void insert(${className} ${className?uncap_first});

    void deleteByPrimaryKey(${idtype} id);

    void deleteBySelective(${className} ${className?uncap_first});

    void updateByPrimaryKey(${className} ${className?uncap_first});

    void updateSelectiveByKey(${className} ${className?uncap_first});

    int countAll();

    ${className} selectByPrimaryKey(${idtype} id);

    List<${className}> selectAll();

    List<${className}> selectBySelective(${className} ${className?uncap_first});
}
